package com.tancire.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 消息管理对象 msg_message
 *
 * @author tancire
 * @date 2024-03-15
 */
public class MsgMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户类型 0 系统 1 会员 2 客户
     */
    @Excel(name = "用户类型 0 系统 1 会员 2 客户")
    private Integer userType;

    /**
     * 发消息账号ID
     */
    @Excel(name = "发消息账号ID")
    private Long userId;

    /**
     * 发消息用户
     */
    @Excel(name = "发消息用户")
    private String userName;

    /**
     * 发消息账号
     */
    @Excel(name = "发消息账号")
    private String userAccount;

    /**
     * 发送账号头像
     */
    @Excel(name = "发送账号头像")
    private String userAvatar;

    /**
     * 消息类型 文本 卡片连接
     */
    @Excel(name = "消息类型 文本 卡片连接 ")
    private String msgType;

    /**
     * 消息分类 通知 公告
     */
    @Excel(name = "消息分类 通知 公告 ")
    private String msgCategory;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String msgContent;

    /**
     * 消息范围 0 全局 1 个人
     */
    @Excel(name = "消息范围 0 全局 1 个人")
    private String msgScope;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private Long revUserId;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private String revUserName;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgCategory(String msgCategory) {
        this.msgCategory = msgCategory;
    }

    public String getMsgCategory() {
        return msgCategory;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgScope(String msgScope) {
        this.msgScope = msgScope;
    }

    public String getMsgScope() {
        return msgScope;
    }

    public void setRevUserId(Long revUserId) {
        this.revUserId = revUserId;
    }

    public Long getRevUserId() {
        return revUserId;
    }

    public void setRevUserName(String revUserName) {
        this.revUserName = revUserName;
    }

    public String getRevUserName() {
        return revUserName;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userType", getUserType())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("userAccount", getUserAccount())
                .append("userAvatar", getUserAvatar())
                .append("msgType", getMsgType())
                .append("msgCategory", getMsgCategory())
                .append("msgContent", getMsgContent())
                .append("msgScope", getMsgScope())
                .append("revUserId", getRevUserId())
                .append("revUserName", getRevUserName())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
